<?php 
class getJsonAction extends AdminMaster{
	public function execute($request){
		$action = $request->getParameter('action_name', '');
		$data = array();
			
		if($action == ADMIN_DEFINED::EDUCATION_GETJSON){
			$educations = MasterEducationSchoolsTable::getDataList();
			foreach($educations as $edu){
				$data['school'][] = $edu['name'].' ('.$edu['short_name'].')';
			}
			
			$levels = MasterEducationLevelsTable::getDataList();
			foreach($levels as $edu){
				$data['level'][] = $edu['name'];
			}
				
		}
		
		print_r(json_encode($data));
		die;
	}
}